package org.jsrml.core.base.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@SuppressWarnings("serial")
@QueryConfig(daoBeanId = "roleService")
public class RoleQO extends BaseQO<String> {

	@QueryCondition(name = "resources", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchResources = true;

	@QueryCondition(name = "name", type = QueryConditionType.LIKE_ANYWHERE)
	private String name;

	public Boolean getFetchResources() {
		return fetchResources;
	}

	public void setFetchResources(Boolean fetchResources) {
		this.fetchResources = fetchResources;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
